<?php
/**
 * (commands) 排查漏上传的SKU
 */
namespace App\Console\Commands\MonthlyReport;

use App\Logic\MonthlyReport\ParseMiss;
use Illuminate\Console\Command;
class PaymentMiss extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'payment:miss';

    /**
     * The console command description.
     * 匹配未上传的亚马逊产品
     * @var string
     */
    protected $description = 'match tmp to miss';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $action = $this->choice('choice exe item: ', ['sa', 'c-plan', 'dsp','re', 'th', 'lts', 'ic', 'ro', 'm-ads', 'vbc', 'to']);
        if($action){
            ParseMiss::parse($action);
            $this->info($action.' exe success!');
        }else{
            $this->error('wrong: choice exe item!');
        }
        die('finish');
    }
}
